#include "NoteObject.h"

#include <math.h>

CNoteObject::CNoteObject()
: CObject()
{
}

CNoteObject::~CNoteObject()
{
}

void CNoteObject::Update()
{
	GoAhead();
	
	if(IsInScreen() == false)
	{
		life = false;
	}

	CObject::Update();
}

void CNoteObject::Set(float x, float y, CAttribute* attribute)
{
	CObject::Set(x, y, attribute);

	touch_able = true;
}

void CNoteObject::Bounce(float angle)
{
	if(touch_able == true)
	{
		SetAngle(angle);
		touch_able = false;
	}
}